package com.example.cloud.pojo;

import com.alibaba.fastjson.JSONArray;

import java.io.Serializable;

/**
 * Created by wt on 2018/11/23.
 */
public class Message implements Serializable {
    private static final long serialVersionUID = -6451812593150428369L;
    // 发送人
    private String username;
    // 发送消息
    private String message;
    // 消息类型
    private int type;
    // 返回数据
    private JSONArray data;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public JSONArray getData() {
        return data;
    }

    public void setData(JSONArray data) {
        this.data = data;
    }

    public Message() {
        super();
    }
    public Message(String username, String message, int type, JSONArray data) {
        super();
        this.username = username;
        this.message = message;
        this.type = type;
        this.data = data;
    }

    @Override
    public String toString() {
        return "";
    }
}
